package com.dpf.team.controller;

import com.dpf.common.pojo.R;
import com.dpf.common.pojo.Team;
import com.dpf.team.service.TeamService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author dpf
 * @version 1.0
 * @date 2023/3/23 18:07
 * @description
 */
@RestController
@RequestMapping("/team")
public class TeamController {

    @Resource
    private TeamService teamService;

    @GetMapping("/list")
    public R<List<Team>> list (){
         return R.data(teamService.list());
    }
}
